package threadTest;

/**
 * @author wangchenghao
 * @date 2021/7/31
 **/
public class javaTest {
    public static class SonThread extends Thread{
        @Override
        public void run() {
            super.run();
            try {
                Thread.sleep(1000);
            }catch (Exception e){

            }
            System.out.println("Haha");
        }
    }

    public static void main(String[] args) {
        SonThread sonThread = new SonThread();
        sonThread.run();
        System.out.println("haha");
    }
}
